define(["jquery","template",
	"scprit/followup/template/motionAndBG/motionAndBG.tpl.js"],function($,template,tpl){
	var ui = {};
	ui.babyInfoInit = function(options){
   		$(options.id).html(tpl.babyInfoInit());
		var html = template("babyInfo-tpl",options.data);
		$(options.id).html(html);
	};
	ui.searchConInit = function(options){
		$(options.id).html(tpl.searchConInit());
		var html = template("searchCon-tpl");
		$(options.id).html(html);
	};
	ui.dialogInit = function(options){
		$(options.id).html(tpl.dialogInit());
		var html = template("dialog-tpl",options.data);
		$(options.id).html(html);
	};
	ui.authorityInit = function(options){
		$(options.id).html(tpl.authorityInit());
		var html = template("authority-tpl",options.data);
		$(options.id).html(html);
	};
	return ui;
});